package cn.edu.scau.cmi.chenzehan.singleFactoryPattern.factory;

import cn.edu.scau.cmi.chenzehan.singleFactoryPattern.insurance.Automobile_Damage;
import cn.edu.scau.cmi.chenzehan.singleFactoryPattern.insurance.Casualties;
import cn.edu.scau.cmi.chenzehan.singleFactoryPattern.insurance.Driver_Injured;
import cn.edu.scau.cmi.chenzehan.singleFactoryPattern.insurance.Insurance_claims;
import javafx.application.Application;

public class claims_Factory {
	public static Insurance_claims instance(String insuranceTypeString) {
		switch (insuranceTypeString) {
		case "汽车损坏": 
			return new Automobile_Damage();
        case "人员伤亡":
            return new Casualties();
        case "驾驶员身体受伤":
			return new Driver_Injured();
		}
         return null;
	}
	
	

}
